<template>
  <div class="dance-container">
    <div class="filter-container" >
      <div class="filter-content-container" :class="{fold:!isShow}"  >
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              兴趣技能:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              古典舞
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              课程状态:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              未开始
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              价格区间:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              2元以下
            </div>
          </el-col>
        </el-row>
        <el-row v-if="isHidden">
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              上课地点:
            </div>
          </el-col>
          <el-col :span="22">
            <el-cascader :options="options" clearable />
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              开学日期:
            </div>
          </el-col>
          <el-col :span="22">
            <div class="block">
              <el-date-picker
                v-model="value1"
                type="daterange"
                range-separator="至"
                start-placeholder="开始时间"
                end-placeholder="结束时间"
                :size="size"
              />
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              学习目标:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              舞蹈教学
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              适合年龄:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              社会舞蹈教师
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="2">
            <div class="grid-content ep-bg-purple npm">
              难易度:
            </div>
          </el-col>
          <el-col :span="22">
            <div
              class="grid-content ep-bg-purple-light course_btn course_msg"
            >
              零基础
            </div>
          </el-col>
        </el-row>
      </div>
      <div class="develop" @click="isShow = !isShow">
        <div>
          {{isShow ? "收起" : "展开全部"}}
        </div>
      </div>
    </div>
  </div>

</template>

<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
    name:"LiveDetails",
})
</script>

<script lang="ts" setup>
import {ref} from "vue";
import {useLiveStore} from "@/store/modules/live";
import {storeToRefs} from "pinia";
//用于控制收起和展开的数据
const isShow = ref(false)
//时间逻辑的数据
const value1 = ref('')
const size = ref<string>('')

const liveStore = useLiveStore()
const {isHidden} = storeToRefs(liveStore)

const options = [
    {
        value: 'guide',
        label: 'Guide',
        children: [
            {
                value: 'disciplines',
                label: 'Disciplines',
                children: [
                    {
                        value: 'consistency',
                        label: 'Consistency',
                    },
                    {
                        value: 'feedback',
                        label: 'Feedback',
                    },
                    {
                        value: 'efficiency',
                        label: 'Efficiency',
                    },
                    {
                        value: 'controllability',
                        label: 'Controllability',
                    },
                ],
            },
            {
                value: 'navigation',
                label: 'Navigation',
                children: [
                    {
                        value: 'side nav',
                        label: 'Side Navigation',
                    },
                    {
                        value: 'top nav',
                        label: 'Top Navigation',
                    },
                ],
            },
        ],
    },
    {
        value: 'component',
        label: 'Component',
        children: [
            {
                value: 'basic',
                label: 'Basic',
                children: [
                    {
                        value: 'layout',
                        label: 'Layout',
                    },
                    {
                        value: 'color',
                        label: 'Color',
                    },
                    {
                        value: 'typography',
                        label: 'Typography',
                    },
                    {
                        value: 'icon',
                        label: 'Icon',
                    },
                    {
                        value: 'button',
                        label: 'Button',
                    },
                ],
            },
            {
                value: 'form',
                label: 'Form',
                children: [
                    {
                        value: 'radio',
                        label: 'Radio',
                    },
                    {
                        value: 'checkbox',
                        label: 'Checkbox',
                    },
                    {
                        value: 'input',
                        label: 'Input',
                    },
                    {
                        value: 'input-number',
                        label: 'InputNumber',
                    },
                    {
                        value: 'select',
                        label: 'Select',
                    },
                    {
                        value: 'cascader',
                        label: 'Cascader',
                    },
                    {
                        value: 'switch',
                        label: 'Switch',
                    },
                    {
                        value: 'slider',
                        label: 'Slider',
                    },
                    {
                        value: 'time-picker',
                        label: 'TimePicker',
                    },
                    {
                        value: 'date-picker',
                        label: 'DatePicker',
                    },
                    {
                        value: 'datetime-picker',
                        label: 'DateTimePicker',
                    },
                    {
                        value: 'upload',
                        label: 'Upload',
                    },
                    {
                        value: 'rate',
                        label: 'Rate',
                    },
                    {
                        value: 'form',
                        label: 'Form',
                    },
                ],
            },
            {
                value: 'data',
                label: 'Data',
                children: [
                    {
                        value: 'table',
                        label: 'Table',
                    },
                    {
                        value: 'tag',
                        label: 'Tag',
                    },
                    {
                        value: 'progress',
                        label: 'Progress',
                    },
                    {
                        value: 'tree',
                        label: 'Tree',
                    },
                    {
                        value: 'pagination',
                        label: 'Pagination',
                    },
                    {
                        value: 'badge',
                        label: 'Badge',
                    },
                ],
            },
            {
                value: 'notice',
                label: 'Notice',
                children: [
                    {
                        value: 'alert',
                        label: 'Alert',
                    },
                    {
                        value: 'loading',
                        label: 'Loading',
                    },
                    {
                        value: 'message',
                        label: 'Message',
                    },
                    {
                        value: 'message-box',
                        label: 'MessageBox',
                    },
                    {
                        value: 'notification',
                        label: 'Notification',
                    },
                ],
            },
            {
                value: 'navigation',
                label: 'Navigation',
                children: [
                    {
                        value: 'menu',
                        label: 'Menu',
                    },
                    {
                        value: 'tabs',
                        label: 'Tabs',
                    },
                    {
                        value: 'breadcrumb',
                        label: 'Breadcrumb',
                    },
                    {
                        value: 'dropdown',
                        label: 'Dropdown',
                    },
                    {
                        value: 'steps',
                        label: 'Steps',
                    },
                ],
            },
            {
                value: 'others',
                label: 'Others',
                children: [
                    {
                        value: 'dialog',
                        label: 'Dialog',
                    },
                    {
                        value: 'tooltip',
                        label: 'Tooltip',
                    },
                    {
                        value: 'popover',
                        label: 'Popover',
                    },
                    {
                        value: 'card',
                        label: 'Card',
                    },
                    {
                        value: 'carousel',
                        label: 'Carousel',
                    },
                    {
                        value: 'collapse',
                        label: 'Collapse',
                    },
                ],
            },
        ],
    },
    {
        value: 'resource',
        label: 'Resource',
        children: [
            {
                value: 'axure',
                label: 'Axure Components',
            },
            {
                value: 'sketch',
                label: 'Sketch Templates',
            },
            {
                value: 'docs',
                label: 'Design Documentation',
            },
        ],
    },
]
</script>

<style scoped lang="scss">
.dance-container{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7f9;
    min-width: 1200px;
.filter-container{
    border-radius: 4px;
    background: #fff;
    padding:26px 30px;
    width: 1140px;
    margin-bottom: 10px;
    margin-top: 10px;
.fold{
    height: 130px;
}
.filter-content-container{
    overflow: hidden;
.grid-content {
    border-radius: 4px;
    margin-top: 6px;
    font-size: 14px;
}

.course_msg {
    font-size: 14px;
    color: #7d8090;
    padding: 7px 13px;
    margin: 0 24px 10px 0;
    cursor: pointer;
}
.course_btn {
    float: left;
    margin-right: 24px;
    color: #7d8090;
    font-size: 14px;
}
.el-row {
    margin-bottom: 20px;
}
.el-col {
    border-radius: 4px;
}
.el-col-2 {
    color: #7d8090;
}
}
.develop{
    display: flex;
    justify-content:center;
    align-items: center;
    color:#f93684;
    font-size: 14px;
    cursor: pointer;
}
}
}

</style>
